Skip to content

Add PyPI download tracking support - #2

Open
SkalskiP wants to merge 553 commits into
SkalskiP:masterfrom
roboflow:feature/add-pypi-download-tracking
Open

Add PyPI download tracking support#2
SkalskiP wants to merge 553 commits into
SkalskiP:masterfrom
roboflow:feature/add-pypi-download-tracking

Conversation

@SkalskiP

Copy link
Copy Markdown
Owner

Summary

  • Add PyPI download statistics tracking alongside existing GitHub stars tracking
  • Introduce INPUT_PYPI_PACKAGES env var to specify packages to track
  • Create standalone discovery tool (python -m startrack.discover) to help users find packages from GitHub orgs
  • Fix several bugs in error handling and API calls
  • Rename data.csv to github_data.csv for consistency with pypi_data.csv

SkalskiP and others added 27 commits January 29, 2026 00:23
  - Add startrack/pypi.py module for fetching daily downloads from pypistats.org
  - Add startrack/discover.py CLI tool to help discover PyPI packages from GitHub orgs
  - Track downloads via INPUT_PYPI_PACKAGES env var (explicit package list)
  - Output PyPI stats to data/pypi_data.csv
  Bug fixes and improvements:
  - Fix Path.exists() incorrect static method call in app.py
  - Fix crash when INPUT_ORGANIZATIONS env var is not set
  - Add error handling for GitHub API failures
  - Add rate limit handling for GitHub API requests
  - Check pyproject.toml, setup.py, and setup.cfg for package discovery
  Other changes:
  - Rename data.csv to github_data.csv for clarity
  - Update GitHub Action to support pypi_packages input
  - Add tomli dependency for TOML parsing
- Detect and wait on 403 rate limit responses before retrying
- Handle exceptions from concurrent futures gracefully
- Log clear ERROR/WARNING messages for failed requests
- Limit concurrent workers to 5 to reduce rate limit pressure
- Prevent duplicate date rows by replacing existing entries
- Add per_page=100 to reduce total API calls
@SkalskiP
SkalskiP force-pushed the feature/add-pypi-download-tracking branch from 745318d to d5d54e6 Compare February 21, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant